//
//  UIColor+Hex.m
//  Pods
//
//  Created by wangxiong on 2017/7/4.
//
//

#import "UIColor+Hex.h"

@implementation UIColor (Hex)


+ (UIColor*)WXColorWithHex:(NSUInteger)hex alpha:(CGFloat) alpha{

	return [UIColor colorWithRed:((float)((hex & 0xFF0000) >> 16)) / 255.0
						   green:((float)((hex & 0xFF00) >> 8)) / 255.0
							blue:((float)((hex & 0xFF))) / 255.0
						   alpha:alpha];
}

+ (UIColor*)WXColorWithHex:(NSUInteger)hex{
	return [self WXColorWithHex:hex alpha:1.0];
}

@end
